package com.css.zfzx.sjcj.modules.hddccjfilemanage.service;

import com.alibaba.fastjson.JSONObject;
import com.css.zfzx.sjcj.modules.hddccjfilemanage.repository.entity.HddcFileManageEntity;
import com.css.zfzx.sjcj.modules.hddccjfilemanage.viewobjects.HddcFileManageQueryParams;
import com.css.bpm.platform.sys.dict.repository.entity.DictItemEntity;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author zyb
 * @date 2020-12-10
 */

public interface HddcFileManageService {

    public JSONObject queryHddcFileManages(HddcFileManageQueryParams queryParams, int curPage, int pageSize,String sort,String order);

    public HddcFileManageEntity getHddcFileManage(String id);

    public HddcFileManageEntity saveHddcFileManage(HddcFileManageEntity hddcFileManage);

    public HddcFileManageEntity updateHddcFileManage(HddcFileManageEntity hddcFileManage);

    public void deleteHddcFileManages(List<String> ids);

    List<DictItemEntity> getValidDictItemsByDictCode(String dictCode);

    int upload(MultipartFile file,String filenumber,String authors);

    void download(String name, HttpServletResponse response);

    /**
     * 逻辑删除-根据项目id删除数据
     * @param projectIds
     */
    void deleteByProjectId(List<String> projectIds);

    /**
     * 逻辑删除-根据任务id删除数据
     * @param taskIds
     */
    void deleteByTaskId(List<String> taskIds);

}
